import request from "@/utils/request"

const url = '/fFinance'

// 新增融资信息
export function addFinanceAPI(
    { bankId, name, phone, rate, repayment, amount, identityNum, imgs }) {
    return request({
        url: `${url}/add`,
        method: 'POST',
        data: { bankId, name, phone, rate, repayment, amount, identityNum, imgs }
    })
}

// 获取个人融资信息
export function getOwnFinanceAPI() {
    return request({
        url: `${url}/own`
    })
}